package com.ruoyi.bookkeeping.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.ruoyi.bookkeeping.domain.BookDynamicReply;
import com.ruoyi.bookkeeping.domain.vo.BookDynamicReplyVo;
import org.apache.ibatis.annotations.Param;

/**
 * 动态回复Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
public interface BookDynamicReplyMapper extends MPJBaseMapper<BookDynamicReply>
{
    /**
     * 查询动态回复
     * 
     * @param dynamicReplyId 动态回复主键
     * @return 动态回复
     */
    public BookDynamicReply selectBookDynamicReplyByDynamicReplyId(Long dynamicReplyId);

    /**
     * 查询动态回复列表
     * 
     * @param bookDynamicReply 动态回复
     * @return 动态回复集合
     */
    public List<BookDynamicReply> selectBookDynamicReplyList(BookDynamicReply bookDynamicReply);

    /**
     * 新增动态回复
     * 
     * @param bookDynamicReply 动态回复
     * @return 结果
     */
    public int insertBookDynamicReply(BookDynamicReply bookDynamicReply);

    /**
     * 修改动态回复
     * 
     * @param bookDynamicReply 动态回复
     * @return 结果
     */
    public int updateBookDynamicReply(BookDynamicReply bookDynamicReply);

    /**
     * 删除动态回复
     * 
     * @param dynamicReplyId 动态回复主键
     * @return 结果
     */
    public int deleteBookDynamicReplyByDynamicReplyId(Long dynamicReplyId);

    /**
     * 批量删除动态回复
     * 
     * @param dynamicReplyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBookDynamicReplyByDynamicReplyIds(Long[] dynamicReplyIds);

    List<BookDynamicReplyVo> selectBookDynamicReplyVoList(@Param("dynamicId") Long dynamicId);
}
